package com._520it.crm.mapper;

import com._520it.crm.domain.Permission;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    List<Permission> queryPageResultByRoleId(Long roleId);

    List<String> queryPermissionsByEmpId(Long id);
}